package com.example.demo.entity;


import ch.qos.logback.core.db.dialect.MySQLDialect;
import lombok.Data;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.IdentityDialect;

import javax.persistence.Column;
import javax.persistence.Id;


@Data
//开启链式编程
@Accessors(chain = true)
public class Test {

    @Id
    @KeySql(useGeneratedKeys = true,dialect = IdentityDialect.SQLSERVER)
    @Column(name = "id",insertable = false,updatable = false)
	private Integer id;
    private String name;
    private Integer age;
    private String address;





}
